package com.itheima.test.testnight;

public class duotai02 {
    public static void main(String[] args) {
        Fu f=new Zi();
        f.method();
        System.out.println(f.num);
    }
}
class Fu{
    int num=10;
    public static void method(){
        System.out.println("Fu类中的方法");
    }
}
class  Zi extends Fu{
    int num=20;

    public static void method() {
        System.out.println("Zi类中的方法");
    }
}